using System;
using System.Collections.Generic;
using System.Windows.Forms;

using log4net;
using log4net.Config;

namespace SerialPortWriter
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] p)
        {
            XmlConfigurator.Configure();
            
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            string  po   = "";
            bool    pr  = false;
            if(p.Length == 2)
            {
                po = p[0];
                pr = (p[1] == "1")?true:false;
            }
            Application.Run(new MainForm(po, pr));
        }

    }
}